import request from "@/utils/request";

//上传附件
export function uploadResorcefj(data) {
  return request({
    url: "/resorcefj",
    method: "POST",
    headers: {},
    data //新增
  });
}

//获取信息
export function get_resource(params) {
  return request({
    url: "/resource",
    method: "GET",
    headers: {},
    params //筛选条件
  });
}

//新增
export function post_resource(data) {
  return request({
    url: "/resource",
    method: "POST",
    headers: {},
    data //新增
  });
}

//跟新
export function put_resource(data) {
  return request({
    url: "/resource",
    method: "Put",
    headers: {},
    data //跟新数据
  });
}

//删除
export function delete_resource(data) {
  return request({
    url: "/resource",
    method: "DELETE",
    headers: {},
    data //删除数据
  });
}